﻿using Dm;
using Harmontronics.Model.Common;
using MySqlX.XDevAPI.Relational;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace Harmontronics.Model.Entitys
{
    /// <summary>
    /// 角色表
    /// </summary>
    [Table("role")]
    public class Role
    {
        /// <summary>
        /// ID
        /// </summary>
        [Key]
        [Column("id")]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [Column("roleName" )]
        public string? RoleName { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [Column("description" )]
        public string? Description { get; set; }

        /// <summary>
        /// 等级
        /// </summary>
        [Column("roleSort")]
        public int? RoleSort { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        [Column("CreateTime")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [Column("updateTime")]
        [MaybeNull]
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [Column("createBy" )]
        public string? CreateBy { get; set; }

        //更新人
        [Column("updateBy" )]
        public string? UpdateBy { get; set; }
        /// <summary>
        /// 是否可用
        /// </summary>
        [Column("enable")]
        public int? Enable { get; set; }
    }
}
